import axios from '@/libs/api.request'
// const api = 'http://10.101.3.174:8896'
const api = 'http://10.100.50.31:8896'
// 查询库存调整操作记录
export const repairList = (data) => {
  return axios.request({
    url: '/sales/inventory/repair/list',
    method: 'post',
    data: data
  })
}
// 查询库存调整操作详情
export const repairDetail = (data) => {
  return axios.request({
    url: '/sales/inventory/repair/detail',
    method: 'post',
    data: data
  })
}
// 店面库存出入库操作录入错误，通过作废库存单据，修改库存数据，暂时只针对总库入库操作
export const repairAdd = (data) => {
  return axios.request({
    url: '/sales/inventory/repair',
    method: 'post',
    data: data
  })
}
// 店面库存出入库操作录入错误，通过作废库存单据，修改库存数据，暂时只针对总库入库操作
export const voucherDetail = (data) => {
  return axios.request({
    url: '/sales/inventory/voucher/detail',
    method: 'post',
    data: data
  })
}

// 兑换异常处理列表
export const exchangeList = (data) => {
  return axios.request({
    url: api + '/k3/sync/list',
    method: 'post',
    data: data
  })
}
